Signal Processing First Lab 11: PeZ - The z, n, and ˆω Domains

Similar documents
1 Introduction & Objective. 2 Warm-up. Lab P-16: PeZ - The z, n, and O! Domains

DSP First. Laboratory Exercise #10. The z, n, and ˆω Domains

DSP First Lab 11: PeZ - The z, n, and ωdomains

Lecture 19 IIR Filters

Ch. 7: Z-transform Reading

PHY 111L Activity 2 Introduction to Kinematics

Computer Exercise 0 Simulation of ARMA-processes

Experiment 13 Poles and zeros in the z plane: IIR systems

18-Dec-12 PHYS Simple Pendulum. To investigate the fundamental physical properties of a simple pendulum.

LAB 2 - ONE DIMENSIONAL MOTION

Lab 1: Earthquake Resources & Plotting Epicenters

Lab 1 Uniform Motion - Graphing and Analyzing Motion

ES205 Analysis and Design of Engineering Systems: Lab 1: An Introductory Tutorial: Getting Started with SIMULINK

Force vs time. IMPULSE AND MOMENTUM Pre Lab Exercise: Turn in with your lab report

Physics Spring 2006 Experiment 4. Centripetal Force. For a mass M in uniform circular motion with tangential speed v at radius R, the required

Jaguar DFT Optimizations and Transition State Searches

BCMB/CHEM 8190 Lab Exercise Using Maple for NMR Data Processing and Pulse Sequence Design March 2012

E : Lecture 1 Introduction

Digital Signal Processing

Lab 1: Dynamic Simulation Using Simulink and Matlab

ME scope Application Note 28

Detailed Solutions to Exercises

EE102B Signal Processing and Linear Systems II. Solutions to Problem Set Nine Spring Quarter

Computer simulation of radioactive decay

Lecture 14 - Using the MATLAB Control System Toolbox and Simulink Friday, February 8, 2013

Laboratory handouts, ME 340

Application Note. U. Heat of Formation of Ethyl Alcohol and Dimethyl Ether. Introduction

Damped Oscillators (revisited)

3 Charged Particle Motion in a Magnetic Field

How many states. Record high temperature

Foundations of Computation

( ) John A. Quinn Lecture. ESE 531: Digital Signal Processing. Lecture Outline. Frequency Response of LTI System. Example: Zero on Real Axis

5-Sep-15 PHYS101-2 GRAPHING

Signals and Systems. Problem Set: The z-transform and DT Fourier Transform

Lab 15 Taylor Polynomials

Scientific Notation Plymouth State University

Signals and Systems. Spring Room 324, Geology Palace, ,

Basic chromatographic parameters and optimization in LC

EE 521: Instrumentation and Measurements

MATLAB BASICS. Instructor: Prof. Shahrouk Ahmadi. TA: Kartik Bulusu

Stellarium Walk-through for First Time Users

Lecture 7 Discrete Systems

Kinematics Lab. 1 Introduction. 2 Equipment. 3 Procedures

OCEAN/ESS 410 Lab 4. Earthquake location

How to Make or Plot a Graph or Chart in Excel

I. Introduction. II. An Introduction to Starry Night NAME: ORBITAL MOTION

University of TN Chattanooga Physics 1040L 8/18/2012 PHYSICS 1040L LAB LAB 4: R.C. TIME CONSTANT LAB

C2A for Pulsar2 how to control your telescope from C2A

Discrete Time Systems

Name Student ID # Instructor Lab Period Date Due. Lab 5 Continuity

Tutorial 23 Back Analysis of Material Properties

Very useful for designing and analyzing signal processing systems

Using Microsoft Excel

Experiment 0: Periodic Signals and the Fourier Series

Measuring the time constant for an RC-Circuit

Astro 101 Lab #1. To advance time forward and backward, click on the arrow toolbar. From left to right, the buttons will

ON SITE SYSTEMS Chemical Safety Assistant

CHARTING THE HEAVENS USING A VIRTUAL PLANETARIUM

Connect the Vernier spectrometer to your lap top computer and power the spectrometer if necessary. Start LoggerPro on your computer.

EOS 102: Dynamic Oceans Exercise 1: Navigating Planet Earth

Lab 1: Numerical Solution of Laplace s Equation

Lecture 3 Matlab Simulink Minimum Phase, Maximum Phase and Linear Phase Systems

Lab 3 & 4. LTI Systems, the Z-Transform, and an Introduction

1 Newton s 2nd and 3rd Laws

SIGNALS AND SYSTEMS LABORATORY 14: The Rudiments of Antenna Design

Centre for Mathematical Sciences HT 2017 Mathematical Statistics. Study chapters 6.1, 6.2 and in the course book.

Radiation. Laboratory exercise - Astrophysical Radiation Processes. Magnus Gålfalk Stockholm Observatory 2007

Laboratory handout 5 Mode shapes and resonance

Multivariable Control Laboratory experiment 2 The Quadruple Tank 1

v Prerequisite Tutorials GSSHA WMS Basics Watershed Delineation using DEMs and 2D Grid Generation Time minutes

Introduction to Hartree-Fock calculations in Spartan

EXPERIMENT 4 ONE DIMENSIONAL MOTION

Free Fall. v gt (Eq. 4) Goals and Introduction

TALLINN UNIVERSITY OF TECHNOLOGY, INSTITUTE OF PHYSICS 6. THE TEMPERATURE DEPENDANCE OF RESISTANCE

WindNinja Tutorial 3: Point Initialization

Photometry of Supernovae with Makali i

Lecture 2 OKAN UNIVERSITY FACULTY OF ENGINEERING AND ARCHITECTURE

Life Cycle of Stars. Photometry of star clusters with SalsaJ. Authors: Daniel Duggan & Sarah Roberts

Driven Harmonic Oscillator

George Mason University ECE 201: Introduction to Signal Analysis Spring 2017

O P E R A T I N G M A N U A L

1 Introduction to Minitab

Tutorial. Getting started. Sample to Insight. March 31, 2016

Z Transform (Part - II)

( ) ( ) = q o. T 12 = τ ln 2. RC Circuits. 1 e t τ. q t

UNIVERSITY OF OSLO. Please make sure that your copy of the problem set is complete before you attempt to answer anything.

Astronomy 101 Lab: Stellarium Tutorial

Spectrometer User s Guide

Lab #10 Atomic Radius Rubric o Missing 1 out of 4 o Missing 2 out of 4 o Missing 3 out of 4

Data Assimilation Research Testbed Tutorial

z-transform Chapter 6

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Physics Department. Experiment 03: Work and Energy

z-transforms Definition of the z-transform Chapter

August 7, 2007 NUMERICAL SOLUTION OF LAPLACE'S EQUATION

SIGNALS AND SYSTEMS LABORATORY 4: Polynomials, Laplace Transforms and Analog Filters in MATLAB

Computational Study of Chemical Kinetics (GIDES)

Experiment P05: Position, Velocity, & Acceleration (Motion Sensor)

EEL3135: Homework #4

Project IV Fourier Series

Laboratory 11 Control Systems Laboratory ECE3557. State Feedback Controller for Position Control of a Flexible Joint

Transcription:

Signal Processing First Lab : PeZ - The z, n, and ˆω Domains The lab report/verification will be done by filling in the last page of this handout which addresses a list of observations to be made when using the PeZ GUI. Introduction & Objective The objective for this lab is to build an intuitive understanding of the relationship between the location of poles and zeros in the z-domain, the impulse response h[n] in the n-domain, and the frequency response H(e j ˆω ) (the ˆω-domain). A graphical user interface (GUI) called PeZ was written in MATLAB for doing interactive explorations of the three domains. PeZ is based on the system function, represented as a ratio of polynomials in z, which can be expressed in either factored or expanded form as: H(z) = B(z) A(z) = G M ( z k z ) N ( p k z ) = M b k z k=0 N a k z Warm-up Invoke PeZ by simply downloading it from and installing it. A control panel with a few buttons and a plot of the unit circle in the complex z-plane will pop up. You can view a tutorial from the link. Here are a few things to try. You can use the control window to selectively place poles and zeros in the z-plane, and then observe (in a second window) how their placement affects the impulse and frequency responses. If the plots need manual updating, click on the Redo Plots button under the <Quicksize...> menu. The Real Time Drag Plots button will put PeZ in a mode such that an individual pole/zero (pair) can be moved around and the corresponding H(e j ˆω ) and h[n] plots will be updated as you drag the pole (or zero). Since exact placement of poles and zeros with the mouse is difficult, an Edit By Co-Ord button is provided for numerical entry of the real and imaginary parts, or magnitude and angle (a separate edit window appears when you use this option). Before you can edit a pole or zero, however, you must first select it with the mouse. Removal of individual poles or zeros can also be performed by clicking on the Delete Poles & Zeros button (again, a separate window will appear). Note that all poles and/or zeros can be easily cleared by clicking on the <Clear...> menu, and then selecting Poles, Zeros, or All. Play around with PeZ for a few minutes to gain some familiarity with the interface. Implement the following first-order system: H(z) = z + 0.9z by placing its poles and zeros at the correct location in the z-plane. First try placing the pole and zero with the mouse, and then use the Edit by Co-Ord feature. PeZ was written by Craig Ulmer. PeZ PeZ Tutorial

3 Relationships between z, n, and ˆω domains Work through the following exercises and keep track of your observations by filling in the worksheet at the end of this assignment. In general, you want to make note of the following quantities: How does h[n] change with respect to its rate of decay? For example, when h[n] = a n u[n], the impulse response will fall off more rapidly when a is smaller. If h[n] exhibits an oscillation period, what is the period? Also, estimate the decay rate of the envelope. How does H(e j ˆω ) change with respect to peak location and peak width? Note: review the Three-Domains - FIR under the link for chapter 7 and Three-Domains - IIR under the link for chapter 8 for examples of these relationships. 4 Lab Exercise: Real Poles (a) Use PeZ to place a single pole at z =. You may have to use the Edit by Co-Ord button to get the location exactly right. Use the plots for this case as the reference for answering the next four parts. (b) Move the pole close to the origin (still on the real axis). You can do this by clicking on the pole and dragging it to the new location. Describe the changes in the impulse response h[n] and the frequency response H(e j ˆω ). (c) You can also move poles and zeros under the influence of the Real Time Drag Plots option in PeZ. When this box is checked, the impulse response and frequency response plots are updated while you move the pole (or zero). Once this mode is set, click on the pole you want to move and start to drag it slowly. Watch for the update of the plots in the secondary window. After the real-time updating has started, you can release the mouse button and the pole (or zero) will follow the cursor. Click on the pole once more to stop moving it and to stop the updating. It is sometimes a little tricky to use this feature. Also the display may be jerky unless you have a high-performance computer with fast graphics. Move the real pole slowly from z = to z = and observe the changes in the impulse response h[n] and the frequency response H(e j ˆω ). (d) Place the pole exactly on the unit circle ( or maybe just inside at a radius of 0.99999999). Describe the changes in h[n] and H(e j ˆω ). What do you expect to see for H(e j ˆω )? (e) Move the pole outside the unit circle. Describe the changes in h[n]. Explain how the appearance of h[n] validates the statement that the system is not stable. In this case, the frequency response H(e j ˆω ) is not legitimate because the system is no longer stable. (f) In general, where should poles be placed to guarantee system stability? By stability we mean that the system s output does not blow up. Chap 7 Three- Domains FIR Chap 8 Three- Domains iir 5 Lab Exercise: Complex Poles and Zeros PeZ assumes real coefficients for the numerator and denominator polynomials. Therefore, if we enter a complex pole or zero, PeZ will automatically insert second root at the conjugate location. For example, if we place a root at z = 3 + j, then we will also get one at z = 3 j.

(a) What property of the polynomial coefficients of A(z) = a z a z will guarantee that the roots come in conjugate pairs? (b) Clear all the poles and zeros from PeZ. Now place a pole with magnitude 0.85 at an angle of 45 ; and then two zeros at the origin. Note that PeZ automatically places a conjugate pole in the z-domain. The frequency response has a peak record the frequency (location) of this peak. (c) Change the angle of the pole: move the pole to 90, then 35. Describe the changes in H(e j ˆω ). Concentrate on the location of the peak. Next, we will put complex zeros on the unit circle to see the effect on H(e j ˆω ). (d) Clear all poles and zeros from PeZ. Now place zeros at the following locations: z =, z = 0 j and z 3 = 0 + j (remember that conjugate pairs such as z and z 3 will be entered simultaneously). Judging from the impulse and frequency responses what type of filter have you just implemented? 6 Lab Exercise: Filter Design In this section, we will use PeZ to place the poles and zeros of H(z) to make a filter with a desirable frequency response. Filter design is a process that selects the coefficients {a k } and {b k } to accomplish a (a) FIR Filter 6 (b) Feedback Filter magnitude.5 0.5 magnitude 5 4 3 0-0.5-0.5 0 0.5 0.5 ωˆ/π 0-0.5-0.5 0 0.5 0.5 ωˆ/π Figure : Magnitude response of two unknown filters. Frequency axis is normalized (ˆω/π). Use PeZ to help you find the filter coefficients that will match these frequency responses as closely as possible. (a) Second-order FIR filter. (b) Second-order IIR filter. given task. The task here is to create a filter that has a very narrow notch. This filter would be useful for removing one frequency component while leaving others undisturbed. The notch filter can be synthesized from the cascade of two simpler filters shown in Fig.. (a) Start the process by using PeZ to design each of the filters given in Fig.. (You will have to determine the locations of the poles and zeros from the plots in Fig..) Both filters are second-order. Make sure that you enter the poles and zeros precisely. PeZ will do the conversion between between root locations and polynomial coefficients, but you could also do this with the MATLAB commands roots and poly. You can check your results by also calculating the filter coefficients by hand (see the next section on polynomials with complex coefficients). Record the coefficients of your filters in the table provided. Note: Use PeZ or freqz() to verify that the frequency response of each filter is correct. 3

(b) Now use PeZ to connect the filters together in a cascade. Place the poles and zeros, and then view the frequency response. Determine the filter coefficients for the overall cascaded filter H(z). (c) Use freqz() to determine the frequency response of the cascade of the two filters that you designed in part (e). Plot the magnitude of the overall frequency response of the cascade system for π < ˆω < π, and print a copy of the plot for your lab report. Explain briefly why the frequency response magnitude has a notch, and explain why the gain (i.e., H(e j ˆω ) ) at ˆω = 0 and ˆω = π is the same. 7 Filter Coefficients from Roots (Optional) Compute the filter coefficients for the denominator A(z) = a z a z and numerator B(z) = b 0 + b z + b z when the poles are: p = 0.75e jπ/4, p = 0.75e jπ/4, and the zeros are: Use the following relationship: z =, z = H(z) = B(z) A(z) = G ( z z )( z z ) ( p z )( p z ) () where z and z are the zeros, and p and p are the poles defined above. Determine G so that the maximum magnitude of H(e jω ) is one. (Remember that MATLAB can multiply polynomials via its conv function.) PeZ uses the normalized frequency scale: < ˆω/(π) <, which is the same as π < ˆω < π. 4

Lab WORKSHEET Turn this page in at the end of your lab period. Name: Date of Lab: Warm-up (Part ): Implemented first-order system with PeZ: Verified: Date/Time: Part Observations 4(a) h[n] decays exponentially with no oscillations, H(e j ˆω ) has a hump at ˆω = 0 4(b) 4(c) 4(d) 4(e) 4(f) 5(a) 5(b) 5(c) 5(d) Part 6(a,b) a k b k Filter Filter Cascade of and Explanation of cascade frequency response: 5